package com.grouppurchase.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("加入团购DTO")
public class GroupJoinDTO {

    @ApiModelProperty(value = "团购ID", required = true, example = "1")
    @NotNull(message = "团购ID不能为空")
    private Long groupId;

    @ApiModelProperty(value = "用户ID", required = true, example = "1")
    @NotNull(message = "用户ID不能为空")
    private Long userId;
}
